﻿using AutoMapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using PublishNews.Entities;
using PublishNews.Models;

namespace PublishNews
{
    public class MappingConfig
    {
        public static void RegisterMappings()
        {
            Mapper.CreateMap<Location, LocationModel>().ReverseMap();
            Mapper.CreateMap<Category, CategoryModel>().ReverseMap();
            Mapper.CreateMap<News, NewsModel>().ReverseMap();
            Mapper.CreateMap<News, ViewNewsModel>().ReverseMap();
            Mapper.CreateMap<News, CreateNewsModel>().ReverseMap();
            Mapper.CreateMap<District, DistrictModel>().ReverseMap();
            Mapper.CreateMap<User, UserModel>().ReverseMap();
            Mapper.CreateMap<User, ViewUserModel>().ReverseMap();
            Mapper.CreateMap<User, EditUserModel>().ReverseMap();
            Mapper.CreateMap<Banner, BannerModel>().ReverseMap();
        }
    }
}